package day01.ti.ti03;

public class Text {
    public static void main(String[] args) {
        YDY ydy=new YDY();
        ydy.setBanji("一班");
        ydy.setNum("147");
        ydy.setName("张三");
        ydy.setXb("男");
       ydy.eat();
        System.out.println(ydy.getNum() + ydy.getName() + ydy.getXb() + ydy.getBanji());
        JiaoLian jiaoLian=new JiaoLian();
        jiaoLian.setNum("147");
        jiaoLian.setName("张三");
        jiaoLian.setXb("男");
        jiaoLian.eat();
        System.out.println(jiaoLian.getNum() + jiaoLian.getName() + jiaoLian.getXb());
    }
}
